<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/manage/css/admin.css" />
		<link rel="stylesheet" href="__STATIC__/manage/js/layui/css/layui.css" />
		<script type="text/javascript" src="__STATIC__/manage/js/jquery.min.js"></script>
		{include file="inc/script" /}
		<script type="text/javascript" src="__STATIC__/manage/js/public.js"></script>
		<script type="text/javascript" src="__STATIC__/manage/js/layui/layui.js"></script>
	</head>
    <body>
	<div class="right-center height-at">
		<div class="center-tit magin0">{$pageData.title}</div>
		<div class="center-nav">
			<ul>
				<li><a href="javascript:;" data-type="add" class="right-btn center-nav-bnt hov "><i class="iconfont icon-add"></i>新增银行</a></li>
			</ul>
		</div>
		<div class="center-tab magin-topn">
			<table class="layui-table" id="centet-cen" lay-filter="table"></table>
			<script type="text/html" id="switchTpl">
			  <input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="statusDemo" {{ d.status == 1 ? 'checked' : '' }}>
			</script>
			
		</div>
	</div>


        <!--<script type="text/javascript">
			function getDatas(){
				$.ajax({
					'type':'post',
					'dataType':'json',
					'url':'{:url('bank.api/rows')}',
					'data':'',
					'success':function(data){
						$.each(data.data,function(index,value){
							var html = '';
							if(index==0){
								var btn = '启用'; 
							}else{
								var btn = '停用'
							}
							$.each(value,function(i,v){
								html += '<div id="bank-'+v.id+'">'+v.bank_name+'【<a href="javascript:;" onclick="change('+v.id+')">'+btn+'</a>】</div>';
							})
							$("#result"+index).html(html);
						});
					}
				});
			}
			getDatas();

			function change(id){
				$.ajax({
					'type':'post',
					'dataType':'json',
					'url':'',
					'data':'id='+id+'&token='+token,
					'success':function(data){
						alert(data.msg);
					}
				});
			}

		</script>	-->
		<script>
			var listSrc="{:url('bank.api/rows')}";
			var changeSrc="{:url('bank.handle/change')}";
		</script>
		<script type="text/javascript" src="__STATIC__/manage/js/bank/show/index.js" ></script>	
</body>
</html>

